package com.twenty.seven.common.exception;

/**
 * 自定义异常类
 */
public class CustomException extends Exception{
	
	private int code;
	private String msg;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CustomException(String msg){
		super(msg);
		this.msg=msg;
	}
	public CustomException(int code,String msg){
		super(msg);
		this.msg=msg;
		this.code=code;
	}
	
	public CustomException(String msg,Throwable cause){
		super(msg,cause);
	}
	public int getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}
	

}